package com.example.quick_quick1;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;
//123
public class Block implements Cell{
	int width;
	int height;
	int x;
	int y;
	GameView gameView;
	Paint paint;

	public Block(GameView gameView) {
		this.gameView = gameView;
		paint=new Paint();
		paint.setColor(Color.BLACK);
		paint.setStyle(Style.FILL_AND_STROKE);
		width=gameView.mainActivity.cons.cellWidth;
		height=gameView.mainActivity.cons.windowHeight/5;
		y=gameView.hero.consY+gameView.hero.height-height;
	}

	public void draw(Canvas canvas) {
		canvas.drawRect(x, y, x + width, y + height+gameView.mainActivity.cons.windowHeight/25, paint);
	}

	public void setX(int x) {
		// TODO Auto-generated method stub
		this.x=x;
	}

	public void setY(int y) {
		// TODO Auto-generated method stub
		this.y=y;
	}
}
